ROOTDIR = .  
CC=arm-linux-gcc
AR=arm-linux-ar
RANLIB=ranlib

BIN = ./bin  
INCLUDE_DIR = ./cgic
JSONINC_DIR = ./cJSON
SQLIITE_DIR = ./sqlite3
LIB_DIR  = ./cgic
CJSONLIB_DIR = ./cJSON
CFLAGS = -I$(INCLUDE_DIR) -I$(JSONINC_DIR) -I$(SQLIITE_DIR)/include -g  -Wall  
LFLAGS = -L$(LIB_DIR) -L$(CJSONLIB_DIR) -L$(SQLIITE_DIR)/lib -lcgic  -lcjson -lsqlite3
#-static
OBJ2 = md5.o session.o main.o  
#.SUFFIXES: .c
.c.o:   
	$(CC) $(CFLAGS)  -c $<

all: foxnet 
#clean
#C编译
foxnet:${OBJ2}
	@echo "============开始编译============"
	$(CC) -o $@ $? $(LFLAGS)
	@cp $@ ${BIN}
	@echo "============编译结束============"
	@echo ""
clean:
	@rm -f *.o